/*
 * node.h
 *
 *  Created on: Feb 9, 2010
 *      Author: rohithdv
 */

#ifndef NODE_H_
#define NODE_H_

#include <stdio.h>
#include <iostream>
using namespace std;

class node {
private:
	int value; // utility value
	node *next;
public:
	node() {}
	node(int i) {value = i; next = NULL;}
	~node() { cout << "class node destructor called " << endl; }
	int getValue(){ return value;}
	node *setNextPointer(node *nextptr) {
		next = nextptr;
		return this;
	}
	node *getNextNode() { return next;}
	void display() {
		cout << value << " ";
	}
};

#endif /* NODE_H_ */
